﻿namespace Sustainalytics.LongRunningTaskManager.Service
{
    /// <summary>
    /// LRTM settings DTO.
    /// </summary>
    public class LongRunningTaskManagerSettingsDto
    {
        /// <summary>
        /// Max tasks per user.
        /// </summary>
        public int MaxTasksPerUser { get; set; }

        /// <summary>
        /// Ctor.
        /// </summary>
        public LongRunningTaskManagerSettingsDto()
        {
        }

        /// <summary>
        /// Ctor.
        /// </summary>
        /// <param name="settings"> LRTM settings. </param>
        public LongRunningTaskManagerSettingsDto(LongRunningTaskManagerSettings settings)
        {
            this.MaxTasksPerUser = settings.MaxTasksPerUser;
        }
    }
}
